import request from '@/utils/request'
// 新增直播课
export function addLive(data) {
	return request({
		url: '/admin/resource/course/live',
		method: 'post',
		data,
		showLoading: true
	})
}
// 直播课分页
export function pagingLive(data) {
	return request({
		url: '/admin/resource/course/live/paging',
		method: 'post',
		data,
		showLoading: true
	})
}

// 直播课详情
export function getLiveDetail(id) {
	return request({
		url: '/admin/resource/course/live/' + id,
		method: 'get',
		showLoading: true
	})
}
// 修改直播课
export function editLive(data) {
	return request({
		url: '/admin/resource/course/live',
		method: 'put',
		data,
		showLoading: true
	})
}
// 批量删除直播课
export function delLive(idList) {
	return request({
		url: '/admin/resource/course/live/' + idList,
		method: 'delete',
		showLoading: true
	})
}
// 直播课上下架
export function publishLive(data) {
	return request({
		url: '/admin/resource/course/live/publish',
		method: 'put',
		data,
		showLoading: true
	})
}
// 直播课导入回放
export function importPlayback(data) {
	return request({
		url: '/admin/resource/course/live/batch/import',
		method: 'post',
		data,
		showLoading: true
	})
}
// 直播课导入
export function importLive(data) {
	return request({
		url: '/admin/resource/course/live/import',
		method: 'post',
		data,
		showLoading: true
	})
}
// 直播课导出
export function exportLive(data) {
	return request({
		url: '/admin/resource/course/live/export',
		method: 'post',
		data,
		showLoading: true
	})
}
